package com.cody.service.impl;

import com.cody.dao.AdminDao;
import com.cody.entity.Sys;
import com.cody.service.SysService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Cody
 * @date 2021/4/11 - 9:59
 */
@Service
public class SysServiceImpl implements SysService {
    @Autowired
    AdminDao adminDao;

    @Override
    public List<Sys> queryAllSys() {
        return adminDao.queryAllSys();
    }

    @Override
    public Sys querySingleSys(String name, String password) {
        return adminDao.querySingleSys(name,password);
    }

    @Override
    public boolean delSysByAdminId(Integer adminId) {
        return adminDao.delSysByAdminId(adminId);
    }
}
